<?php


namespace App\Http\Services\FormBuilder\Segments;


use App\Http\Services\FormBuilder\Elements\Wrapper;

class BaseMoneySelectorBracket extends Wrapper
{
    protected $brackets;
    protected $interval;
    protected $unit;
    protected $intervalDisplayName;
    protected $defaultMoney;

    public function __construct($brackets)
    {
        $this->brackets = $brackets;
    }

    public function interval($interval)
    {
        $this->interval = $interval;

        return $this;
    }

    public function unit($unit)
    {
        $this->unit = $unit;

        return $this;
    }

    public function defaultMoney($defaultMoney)
    {
        $this->defaultMoney = $defaultMoney;

        return $this;
    }

    public function setIntervalDisplayName($intervalDisplayName)
    {
        $this->intervalDisplayName = $intervalDisplayName;

        return $this;
    }
}